package cn.panda.edu.service;

import cn.panda.edu.model.Education;
import com.github.pagehelper.PageInfo;

/**
 * 
 * 类描述：  教学计划Service接口
 * @author: DuanGaoXi
 * @date： 2018-01-18 下午3:09:52
 */
public interface EducationService {

	/**
	 * 
	* @Title: deleteByPrimaryKey 
	* @Description: 根据主键删除教学计划
	* @param educationPlanId
	* @return  
	* int
	 */
    int deleteByPrimaryKey(Integer educationPlanId);
    /**
	 * 
	* @Title: listEduByMajorIdAndPage 
	* @Description: 根据专业id分页查询该专业教学计划
	* @param majorId
	* @param pageIndex
	* @param pageSize
	* @return  
	* PageInfo<Education>
	 */
	PageInfo<Education> listEduByMajorIdAndPage(Integer majorId, Integer pageIndex, Integer pageSize);
    /**
     * 
    * @Title: insert 
    * @Description: 添加教学计划
    * @param record
    * @return  
    * int
     */
    int insert(Education record);
    
    /**
     * 
    * @Title: insertSelective 
    * @Description: 有选择的添加教学计划
    * @param record
    * @return  
    * int
     */
    int insertSelective(Education record);

    /**
     * 
    * @Title: selectByPrimaryKey 
    * @Description: 根据主键查询教学计划信息 +分页
    * @param educationPlanId
    * @return  
    * Education
     */
    Education selectByPrimaryKey(Integer educationPlanId);
    
    /**
     * 
    * @Title: updateByPrimaryKeySelective 
    * @Description: 根据主键有选择的更新
    * @param record
    * @return  
    * int
     */
    int updateByPrimaryKeySelective(Education record);

    /**
     * 
    * @Title: updateByPrimaryKey 
    * @Description: 根据主键更新全部信息 
    * @param record
    * @return  
    * int
     */
    int updateByPrimaryKey(Education record);
    
   /* *//**
     * 
    * @Title: selectMajorNameByPrimaryKey 
    * @Description: 通过教学计划id查询专业名称+分页
    * @param @param educationPlanId
    * @param @return  
    * @return Major
     *//*
    PageInfo<Major> selectMajorNameByPrimaryKey(Integer educationPlanId,Integer pageIndex, Integer pageSize);*/
    
    /**
     * 
    * @Title: selectAll 
    * @Description:  查询所有教学计划信息
    * @param @return  
    * @return List<Education>
     */
    PageInfo<Education> selectAll(Integer pageIndex, Integer pageSize);
}
